package com.miyuan.wm.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName QueryUserOperationLogResponseVo
 * @Description 系统操作登入登出日志返回参数类
 */
@Data
@ApiModel(value = "系统操作登入登出日志返回参数类", description = "系统操作登入登出日志")
public class QueryAccessRecordsResponseVo implements Serializable {

    @ApiModelProperty(value = "数据库Id", notes = "数据库Id")
    private int id;

    @ApiModelProperty(value = "用户Id", notes = "用户Id")
    private int userId;

    @ApiModelProperty(value = "用户名", notes = "用户名")
    private String userName;

    @ApiModelProperty(value = "记录类型，登入或登出", notes = "记录类型，登入或登出")
    private String accessType;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "记录时间", notes = "记录时间")
    private Date accessTime;

    @ApiModelProperty(value = "用户登入或登出对应的IP地址", notes = "用户登入或登出对应的IP地址")
    private String accessIp;
}
